<%-include ../public/header%>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->


<%-include ../public/navbar%>

<%-include ../public/nav%>

<div class="content">
    <div class="container">
        <div class="container-fluid">
            <h2>用户修改</h2>
            <form action="<%=host%>admin/user/doEdit" method="post">
                <input type="text" name="id" value="<%=info._id%>">

                <div class="form-group">
                    <label>用户名</label>
                    <input type="text" name="username" class="form-control username" value="<%=info.username%>"  placeholder="用户名">
                </div>
                <div class="form-group">
                    <label>密　码</label>
                    <input type="password" name="password" class="form-control password" value="<%=info.password%>"  placeholder="密码">
                </div>
                <div class="form-group">
                    <label>年　龄</label>
                    <input type="text" name="age" class="form-control age" value="<%=info.age%>" placeholder="年龄">
                </div>

                <!--<div class="form-group">-->
                    <!--<label>头像</label>-->
                    <!--<input type="file">-->

                <!--</div>-->

                <label class="radio-inline">
                    <%if(info.sex=="1"){ %>
                    <input type="radio" name="sex"  value="1" checked> 男
                    <input type="radio" name="sex"  value="2"> 女

                    <% } else {%>
                    <input type="radio" name="sex"  value="1"> 男
                    <input type="radio" name="sex"  value="2" checked> 女
                    <%}%>
                </label>


                <button type="submit" class="btn btn-info">修改</button>
            </form>

        </div>
    </div>
</div>

<script src="<%=host%>lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('.demo-cancel-click').click(function(){return false;});
    });
</script>

</body>
</html>
